Function
floatMethod
(prefix: string, localTypeId: number)
Source from the content-addressed store, hash-verified
| 515 | } |
| 516 | |
| 517 | function floatMethod(prefix: string, localTypeId: number): string | null { |
| 518 | switch (localTypeId) { |
| 519 | case TypeId.FLOAT16: |
| 520 | return `${prefix}16`; |
| 521 | case TypeId.BFLOAT16: |
| 522 | return `${prefix === "Float" ? "Bfloat" : "bfloat"}16`; |
| 523 | case TypeId.FLOAT32: |
| 524 | return `${prefix}32`; |
| 525 | case TypeId.FLOAT64: |
| 526 | return `${prefix}64`; |
| 527 | default: |
| 528 | return null; |
| 529 | } |
| 530 | } |
| 531 | |
| 532 | function integerRangeFitsFloat( |
| 533 | remoteTypeId: number, |
Tested by
no test coverage detected