| 484 | |
| 485 | |
| 486 | bool_t xdr_float(xdr_t* xdrs, float* ip) |
| 487 | { |
| 488 | /************************************** |
| 489 | * |
| 490 | * x d r _ f l o a t |
| 491 | * |
| 492 | ************************************** |
| 493 | * |
| 494 | * Functional description |
| 495 | * Map from external to internal representation (or vice versa). |
| 496 | * |
| 497 | **************************************/ |
| 498 | fb_assert(sizeof(float) == sizeof(SLONG)); |
| 499 | |
| 500 | switch (xdrs->x_op) |
| 501 | { |
| 502 | case XDR_ENCODE: |
| 503 | return PUTLONG(xdrs, reinterpret_cast<SLONG*>(ip)); |
| 504 | |
| 505 | case XDR_DECODE: |
| 506 | return GETLONG(xdrs, reinterpret_cast<SLONG*>(ip)); |
| 507 | |
| 508 | case XDR_FREE: |
| 509 | return TRUE; |
| 510 | } |
| 511 | |
| 512 | return FALSE; |
| 513 | } |
| 514 | |
| 515 | |
| 516 | bool_t xdr_int(xdr_t* xdrs, int* ip) |
no test coverage detected