Changed integer operations to float for Intel devices