KernelCost.element_ns: def of stelliferous@0.0.2.0 Import: import stelliferous@0.0.2.0/kernel_cost.bend as KernelCost Lines 8-13 of stelliferous@0.0.2.0/kernel_cost.bend: https://jend.leeeet.dev/read.txt?path=stelliferous@0.0.2.0/kernel_cost.bend&start_line=8&end_line=13 import Base # One element's cost. Bytes price loading, storing and the loop that moves # them, as the copies that measured copy_byte_ns do; operations are the other # scalar work, counted from source. def element_ns(+bytes: F32,+operations: F32,config: Configuration) -> F32: Configuration{mac_ns,byte_ns,operation_ns,grain,wake} = config (bytes * byte_ns + operations * operation_ns : F32) Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32.add https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=F32.mul https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/kernel_cost.bend&name=Configuration