search for: ullong_max

Displaying 19 results from an estimated 19 matches for "ullong_max".

Did you mean: ulong_max
2004 Jul 15
2
[LLVMdev] Constants.cpp:368: error: `INT8_MAX' undeclared(firstuse this function)
...AX 0xffffffffUL /* maximum unsigned long */ #if defined(_ALL_SOURCE) \ || (__STDC__ - 0 == 0) && !defined(_POSIX_C_SOURCE) \ && !defined(_XOPEN_SOURCE) /* * Minimum and maximum values for 64-bit types * Define all the various well-known flavors of symbols * */ #define ULLONG_MAX ((u_quad_t)0-1) /* 0xffffffffffffffff */ #define LLONG_MAX ((quad_t)(ULLONG_MAX>>1)) /* 0x7fffffffffffffff */ #define LLONG_MIN ((quad_t)((-LLONG_MAX)-1)) /* 0x8000000000000000 */ #define LONG_LONG_MIN LLONG_MIN #define LONG_LONG_MAX LLONG_MAX #define ULONG_LONG...
2004 Jul 14
0
[LLVMdev] Constants.cpp:368: error: `INT8_MAX' undeclared(firstuse this function)
...AX 0xffffffffUL /* maximum unsigned long */ #if defined(_ALL_SOURCE) \ || (__STDC__ - 0 == 0) && !defined(_POSIX_C_SOURCE) \ && !defined(_XOPEN_SOURCE) /* * Minimum and maximum values for 64-bit types * Define all the various well-known flavors of symbols * */ #define ULLONG_MAX ((u_quad_t)0-1) /* 0xffffffffffffffff */ #define LLONG_MAX ((quad_t)(ULLONG_MAX>>1)) /* 0x7fffffffffffffff */ #define LLONG_MIN ((quad_t)((-LLONG_MAX)-1)) /* 0x8000000000000000 */ #define LONG_LONG_MIN LLONG_MIN #define LONG_LONG_MAX LLONG_MAX #define ULONG_LONG...
2004 Jul 15
0
[LLVMdev] Constants.cpp:368: error: `INT8_MAX' undeclared(firstuse this function)
...; > #if defined(_ALL_SOURCE) \ > || (__STDC__ - 0 == 0) && !defined(_POSIX_C_SOURCE) \ > && !defined(_XOPEN_SOURCE) > /* > * Minimum and maximum values for 64-bit types > * Define all the various well-known flavors of symbols > * > */ > #define ULLONG_MAX ((u_quad_t)0-1) /* 0xffffffffffffffff */ > #define LLONG_MAX ((quad_t)(ULLONG_MAX>>1)) /* 0x7fffffffffffffff */ > #define LLONG_MIN ((quad_t)((-LLONG_MAX)-1)) /* 0x8000000000000000 */ > > > #define LONG_LONG_MIN LLONG_MIN > #define LONG_LONG_MAX...
2020 Aug 21
9
[PATCH V2 0/3] vDPA: API for reporting IOVA range
...IOVA - for VM(qemu), when vIOMMU is not enabled, fail early if GPA is out of range - for VM(qemu), when vIOMMU is enabled, determine a valid guest address width Please review. Changes from V1: - do not mandate get_iova_range() for device with its own DMA translation logic and assume a [0, ULLONG_MAX] range - mandate IOVA range only for IOMMU that forcing aperture - forbid the map which is out of the IOVA range in vhost-vDPA Thanks Jason Wang (3): vdpa: introduce config op to get valid iova range vhost: vdpa: report iova range vdpa_sim: implement get_iova_range() drivers/vdpa/vdpa_sim...
2019 Jun 13
2
[RFC] Coding Standards: "prefer `int` for regular arithmetic, use `unsigned` only for bitmask and when you intend to rely on wrapping behavior."
FWIW, the talks linked by Mehdi really do talk about these things and why I don't think the really are the correct trade-off. Even if you imagine an unsigned type that doesn't allow wrapping, I think this is a really bad type. The problem is that you have made the most common value of the type (zero in every study I'm aware of) be a boundary condition. Today, it wraps to a huge value
2012 Jan 17
8
[RFC][PATCH 1/2] Btrfs: try to allocate new chunks with degenerated profile
...BLOCK_GROUP_RAID10; + flags |= BTRFS_BLOCK_GROUP_RAID1; + } else if (flags & BTRFS_BLOCK_GROUP_RAID1) { + flags &= ~BTRFS_BLOCK_GROUP_RAID1; + flags |= BTRFS_BLOCK_GROUP_DUP; + } else if (flags & BTRFS_BLOCK_GROUP_RAID0) { + flags &= ~BTRFS_BLOCK_GROUP_RAID0; + } else + flags = ULLONG_MAX; + + return flags; +} + static u64 get_alloc_profile(struct btrfs_root *root, u64 flags) { if (flags & BTRFS_BLOCK_GROUP_DATA) @@ -3356,8 +3380,23 @@ again: } ret = btrfs_alloc_chunk(trans, extent_root, flags); - if (ret < 0 && ret != -ENOSPC) - goto out; + if (ret < 0)...
2011 Mar 07
4
[PATCH 0/3] ocfs2: Add batched discard support
Hi all, This patch set adds batched discard support to ocfs2. Please check. Thanks. Regards, Tao
2020 Aug 21
0
[PATCH V2 3/3] vdpa_sim: implement get_iova_range()
...c +++ b/drivers/vdpa/vdpa_sim/vdpa_sim.c @@ -574,6 +574,16 @@ static u32 vdpasim_get_generation(struct vdpa_device *vdpa) return vdpasim->generation; } +struct vdpa_iova_range vdpasim_get_iova_range(struct vdpa_device *vdpa) +{ + struct vdpa_iova_range range = { + .first = 0ULL, + .last = ULLONG_MAX, + }; + + return range; +} + static int vdpasim_set_map(struct vdpa_device *vdpa, struct vhost_iotlb *iotlb) { @@ -657,6 +667,7 @@ static const struct vdpa_config_ops vdpasim_net_config_ops = { .get_config = vdpasim_get_config, .set_config = vdpasim_set_config,...
2020 Aug 31
0
[PATCH V2 2/3] vhost: vdpa: report iova range
...in_get_attr(v->domain, >> + DOMAIN_ATTR_GEOMETRY, &geo) && >> + geo.force_aperture) { >> + range->first = geo.aperture_start; >> + range->last = geo.aperture_end; >> + } else { >> + range->first = 0; >> + range->last = ULLONG_MAX; >> + } > Shouldn't we require drivers that publish VIRTIO_F_ACCESS_PLATFORM to > implement get_iova_range? Probably not, since ACCESS_PLATFORM does not exclude the device that depends on the chipset IOMMU to work. So in that case, we should query IOMMU driver instead of vDPA de...
2011 Jun 14
0
klibc 1.5.23 release
...atile in exitshell Matthias Klose (1): [klibc] ppc64: Fix build failure with stricter as maximilian attems (7): [klibc] 1.5.22 released, next version is 1.5.23 [klibc] [JOBS] Debug compile fix [klibc] dash merge update [klibc] limits.h define LLONG_MIN, LLONG_MAX and ULLONG_MAX [klibc] nfsmount: free rem_name on errors [klibc] utils add minimal mv [klibc] strndup(): Fix possible null pointer dereference
2016 Mar 25
0
[RFC PATCH V2 2/2] vhost: device IOTLB API
...((vq)->error_ctx) \ eventfd_signal((vq)->error_ctx, 1);\ } while (0) diff --git a/fs/eventfd.c b/fs/eventfd.c index 8d0c0df..5c0a22f 100644 --- a/fs/eventfd.c +++ b/fs/eventfd.c @@ -59,8 +59,9 @@ __u64 eventfd_signal(struct eventfd_ctx *ctx, __u64 n) if (ULLONG_MAX - ctx->count < n) n = ULLONG_MAX - ctx->count; ctx->count += n; - if (waitqueue_active(&ctx->wqh)) + if (waitqueue_active(&ctx->wqh)) { wake_up_locked_poll(&ctx->wqh, POLLIN); + } spin_unlock_irqrestore(&ctx->wqh.lock, flags); return n; diff --g...
2017 Jan 06
0
Wine release 2.0-rc4
...gdi32: Support PALETTEINDEX colors for 1-bpp DIB blits. ole32/tests: Add a test for WM_DRAWCLIPBOARD during OleSetClipboard. Update copyright info for 2017. Alistair Leslie-Hughes (2): include: Correct misspelt GCPCLASS_PREBOUNDRTL define. include: Add LLONG_MIN, LLONG_MAX, ULLONG_MAX defines. Andrew Eikum (3): dsound: Fix rolloff factor calculation. dsound: Use the value from SetVolume when 3D processing is disabled. dsound: Don't write more than three periods to IAudioClient. André Hentschel (1): hlink/tests: Test skipped data. Henri Verbeet (4):...
2016 Jul 13
2
[PATCH v3 1/7] lib: string: add functions to case-convert strings
...kernel.h @@ -10,8 +10,6 @@ #include <linux/bitops.h> #include <linux/log2.h> #include <linux/typecheck.h> -#include <linux/printk.h> -#include <linux/dynamic_debug.h> #include <asm/byteorder.h> #include <uapi/linux/kernel.h> @@ -29,6 +27,9 @@ #define ULLONG_MAX (~0ULL) #define SIZE_MAX (~(size_t)0) +#include <linux/printk.h> +#include <linux/dynamic_debug.h> + #define U8_MAX ((u8)~0U) #define S8_MAX ((s8)(U8_MAX>>1)) #define S8_MIN ((s8)(-S8_MAX - 1)) This solves bounds.c. But it doesn't help w...
2016 Mar 25
4
[RFC PATCH V2 0/2] basic device IOTLB support
This patch tries to implement an device IOTLB for vhost. This could be used with for co-operation with userspace(qemu) implementation of iommu for a secure DMA environment (DMAR) in guest. The idea is simple. When vhost meets an IOTLB miss, it will request the assistance of userspace to do the translation, this is done through: - Fill the translation request in a preset userspace address (This
2016 Mar 25
4
[RFC PATCH V2 0/2] basic device IOTLB support
This patch tries to implement an device IOTLB for vhost. This could be used with for co-operation with userspace(qemu) implementation of iommu for a secure DMA environment (DMAR) in guest. The idea is simple. When vhost meets an IOTLB miss, it will request the assistance of userspace to do the translation, this is done through: - Fill the translation request in a preset userspace address (This
2016 Apr 27
2
[RFC PATCH V2 2/2] vhost: device IOTLB API
...\ > eventfd_signal((vq)->error_ctx, 1);\ > } while (0) > diff --git a/fs/eventfd.c b/fs/eventfd.c > index 8d0c0df..5c0a22f 100644 > --- a/fs/eventfd.c > +++ b/fs/eventfd.c > @@ -59,8 +59,9 @@ __u64 eventfd_signal(struct eventfd_ctx *ctx, __u64 n) > if (ULLONG_MAX - ctx->count < n) > n = ULLONG_MAX - ctx->count; > ctx->count += n; > - if (waitqueue_active(&ctx->wqh)) > + if (waitqueue_active(&ctx->wqh)) { > wake_up_locked_poll(&ctx->wqh, POLLIN); > + } > spin_unlock_irqrestore(&ctx->wqh.l...
2016 Apr 27
2
[RFC PATCH V2 2/2] vhost: device IOTLB API
...\ > eventfd_signal((vq)->error_ctx, 1);\ > } while (0) > diff --git a/fs/eventfd.c b/fs/eventfd.c > index 8d0c0df..5c0a22f 100644 > --- a/fs/eventfd.c > +++ b/fs/eventfd.c > @@ -59,8 +59,9 @@ __u64 eventfd_signal(struct eventfd_ctx *ctx, __u64 n) > if (ULLONG_MAX - ctx->count < n) > n = ULLONG_MAX - ctx->count; > ctx->count += n; > - if (waitqueue_active(&ctx->wqh)) > + if (waitqueue_active(&ctx->wqh)) { > wake_up_locked_poll(&ctx->wqh, POLLIN); > + } > spin_unlock_irqrestore(&ctx->wqh.l...
2016 Jul 13
0
[PATCH v3 1/7] lib: string: add functions to case-convert strings
...x/bitops.h> > #include <linux/log2.h> > #include <linux/typecheck.h> > -#include <linux/printk.h> > -#include <linux/dynamic_debug.h> > #include <asm/byteorder.h> > #include <uapi/linux/kernel.h> > > @@ -29,6 +27,9 @@ > #define ULLONG_MAX (~0ULL) > #define SIZE_MAX (~(size_t)0) > > +#include <linux/printk.h> > +#include <linux/dynamic_debug.h> > + > #define U8_MAX ((u8)~0U) > #define S8_MAX ((s8)(U8_MAX>>1)) > #define S8_MIN ((s8)(-S8_MAX - 1)) > &g...
2016 Jul 11
2
[PATCH v3 1/7] lib: string: add functions to case-convert strings
On 9 July 2016 at 08:30, Markus Mayer <markus.mayer at broadcom.com> wrote: > On 9 July 2016 at 05:04, Luis de Bethencourt <luisbg at osg.samsung.com> wrote: >> On 08/07/16 23:43, Markus Mayer wrote: >>> Add a collection of generic functions to convert strings to lowercase >>> or uppercase. >>> >>> Changing the case of a string (with or