Lines Matching refs:format
33 #define FIXED_EXTERNAL(f,format,value) { \
36 if (i = (format)->fixedpoint) \
49 #define FIXED_INTERNAL(f,w,value,format) { \
52 if (i = (format)->fixedpoint) \
121 bcd_external(Cx_t* cx, Cxtype_t* type, const char* details, Cxformat_t* format, Cxvalue_t* value, char* buf, size_t size, Cxdisc_t* disc)
128 if (format->width > size)
129 return format->width;
130 if ((e = s + format->width - 1) < s)
132 FIXED_EXTERNAL(f, format, value);
150 return format->width;
203 bcd_internal(Cx_t* cx, Cxtype_t* type, const char* details, Cxformat_t* format, Cxoperand_t* ret, const char* buf, size_t size, Vmalloc_t* vm, Cxdisc_t* disc)
211 if (format->width > size)
212 return format->width;
215 e = s + format->width - 1;
244 FIXED_INTERNAL(f, w, &ret->value, format);
245 return format->width;
249 be_external(Cx_t* cx, Cxtype_t* type, const char* details, Cxformat_t* format, Cxvalue_t* value, char* buf, size_t size, Cxdisc_t* disc)
259 if (format->width > size)
260 return format->width;
261 e = s + format->width;
262 FIXED_EXTERNAL(f, format, value);
263 if (format->flags & CX_FLOAT)
265 switch (format->width)
277 swapmem(_ast_intswap, u, s, format->width);
292 return format->width;
296 be_internal(Cx_t* cx, Cxtype_t* type, const char* details, Cxformat_t* format, Cxoperand_t* ret, const char* buf, size_t size, Vmalloc_t* vm, Cxdisc_t* disc)
306 if (format->width > size)
307 return format->width;
308 e = s + format->width;
309 if (format->flags & CX_FLOAT)
311 switch (format->width)
316 swapmem(_ast_intswap, u, s, format->width);
326 swapmem(_ast_intswap, u, s, format->width);
343 FIXED_INTERNAL(f, v, &ret->value, format);
345 return format->width;
389 hash_external(Cx_t* cx, Cxtype_t* type, const char* details, Cxformat_t* format, Cxvalue_t* value, char* buf, size_t size, Cxdisc_t* disc)
401 if (CXDETAILS(details, format, type, 0))
428 hash_internal(Cx_t* cx, Cxtype_t* type, const char* details, Cxformat_t* format, Cxoperand_t* ret, const char* buf, size_t size, Vmalloc_t* vm, Cxdisc_t* disc)
437 if (format->width > size)
438 return format->width;
442 if (CXDETAILS(details, format, type, 0))
445 if (!(t = vmnewof(vm, 0, unsigned char, format->width, 1)))
448 ret->value.string.size = format->width;
466 return format->width;
504 heka_internal(Cx_t* cx, Cxtype_t* type, const char* details, Cxformat_t* format, Cxoperand_t* ret, const char* buf, size_t size, Vmalloc_t* vm, Cxdisc_t* disc)
507 register unsigned char* e = s + format->width;
512 if (format->width > size)
513 return format->width;
514 e = s + format->width;
529 FIXED_INTERNAL(f, u, &ret->value, format);
550 heka_external(Cx_t* cx, Cxtype_t* type, const char* details, Cxformat_t* format, Cxvalue_t* value, char* buf, size_t size, Cxdisc_t* disc)
561 FIXED_EXTERNAL(f, format, value);
562 if (f >= 0 || (format->flags & CX_UNSIGNED))
581 if ((c = format->width) > 0 && c < (elementsof(tmp) - 1))
588 if (!(format->flags & CX_UNSIGNED))
766 ibm_external(Cx_t* cx, Cxtype_t* type, const char* details, Cxformat_t* format, Cxvalue_t* value, char* buf, size_t size, Cxdisc_t* disc)
778 if (format->width > size)
779 return format->width;
782 switch (format->width)
953 ibm_internal(Cx_t* cx, Cxtype_t* type, const char* details, Cxformat_t* format, Cxoperand_t* ret, const char* buf, size_t size, Vmalloc_t* vm, Cxdisc_t* disc)
959 if (format->width > size)
960 return format->width;
961 switch (format->width)
989 le_external(Cx_t* cx, Cxtype_t* type, const char* details, Cxformat_t* format, Cxvalue_t* value, char* buf, size_t size, Cxdisc_t* disc)
999 if (format->width > size)
1000 return format->width;
1001 e = s + format->width;
1002 FIXED_EXTERNAL(f, format, value);
1003 if (format->flags & CX_FLOAT)
1005 switch (format->width)
1017 swapmem(_ast_intswap ^ 7, u, s, format->width);
1032 return format->width;
1036 le_internal(Cx_t* cx, Cxtype_t* type, const char* details, Cxformat_t* format, Cxoperand_t* ret, const char* buf, size_t size, Vmalloc_t* vm, Cxdisc_t* disc)
1046 if (format->width > size)
1047 return format->width;
1048 e = s + format->width;
1049 if (format->flags & CX_FLOAT)
1051 switch (format->width)
1056 swapmem(_ast_intswap ^ 7, u, s, format->width);
1066 swapmem(_ast_intswap ^ 7, u, s, format->width);
1083 FIXED_INTERNAL(f, v, &ret->value, format);
1085 return format->width;
1089 sf_external(Cx_t* cx, Cxtype_t* type, const char* details, Cxformat_t* format, Cxvalue_t* value, char* buf, size_t size, Cxdisc_t* disc)
1096 FIXED_EXTERNAL(f, format, value);
1098 if (format->flags & CX_FLOAT)
1100 else if (format->flags & CX_UNSIGNED)
1117 sf_internal(Cx_t* cx, Cxtype_t* type, const char* details, Cxformat_t* format, Cxoperand_t* ret, const char* buf, size_t size, Vmalloc_t* vm, Cxdisc_t* disc)
1122 if (format->flags & CX_FLOAT)
1124 else if (format->flags & CX_UNSIGNED)
1141 { "rand_t", "Non-repeatable pseudo-random string hash.", CXH, (Cxtype_t*)"string", hash_init, hash_external, hash_internal, 0, 0, 0, 0, { "The format details string is an optional initial pseudo-random seed number. The default is synthesized using current process/system characteristics.", 0, CX_STRING } },