Read and return a float (32 bits) Throws an exception of type (cfile_error *) if the OS returns an error on read
| 698 | // Read and return a float (32 bits) |
| 699 | // Throws an exception of type (cfile_error *) if the OS returns an error on read |
| 700 | float cf_ReadFloat(CFILE *cfp) { |
| 701 | float f; |
| 702 | cf_ReadBytes((uint8_t *)&f, sizeof(f), cfp); |
| 703 | return INTEL_FLOAT(f); |
| 704 | } |
| 705 | // Read and return a double (64 bits) |
| 706 | // Throws an exception of type (cfile_error *) if the OS returns an error on read |
| 707 | double cf_ReadDouble(CFILE *cfp) { |
no test coverage detected